package com.dms.modules.user.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

@Data
@ApiModel(value = "FavoriteDTO", description = "收藏DTO")
public class FavoriteDTO {
    
    @NotNull(message = "收藏类型不能为空")
    @ApiModelProperty("收藏类型：1-商品 2-店铺")
    private Integer type;
    
    @NotNull(message = "收藏对象ID不能为空")
    @ApiModelProperty("收藏对象ID")
    private Long targetId;
    
    @ApiModelProperty("收藏对象名称")
    private String targetName;
    
    @ApiModelProperty("收藏对象图片")
    private String targetImage;
    
    @ApiModelProperty("收藏对象价格")
    private String targetPrice;
} 